package com.nation.serviceImpl;

import com.nation.dao.TechnologyDao;
import com.nation.domain.VScienceAndTechnologyEducation;
import com.nation.service.TechnologyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by dqd on 2017/11/3.
 */
@Service
public class TechnologyServiceImpl implements TechnologyService{
    @Autowired
    TechnologyDao TechnologyDao;
    @Override
    public List<VScienceAndTechnologyEducation> findAll() {
        return TechnologyDao.findAll();
    }

    @Override
    public VScienceAndTechnologyEducation findByCountryCode(String country_code) {
        return TechnologyDao.findByCountryCode(country_code);
    }

    @Override
    public Boolean update(VScienceAndTechnologyEducation vScienceAndTechnologyEducation) {
        return TechnologyDao.update(vScienceAndTechnologyEducation);
    }

    @Override
    public List<VScienceAndTechnologyEducation> findByLimit(Map<String, Object> map) {
        return TechnologyDao.findByLimit(map);
    }

    @Override
    public Boolean insert(VScienceAndTechnologyEducation vScienceAndTechnologyEducation) {
        return TechnologyDao.insert(vScienceAndTechnologyEducation);
    }

    @Override
    public List<VScienceAndTechnologyEducation> findByCondition(Map<String, Object> map) {
        return TechnologyDao.findByCondition(map);
    }

    @Override
    public Boolean delete(String pk) {
        return TechnologyDao.delete(pk);
    }
}
